import { baseUrl } from './config';
import http from '@/utils/http';

export function get_companies(uuid) {
  return http({
    url: `${baseUrl}/hunt/api/cand/company/${uuid}`,
    method: 'get'
  });
}

export function get_position_detail(params) {
  return http({
    url: `${baseUrl}/hunt/api/cand/position`,
    method: 'post',
    data: params
  });
}

export function query_write(params) {
  return http({
    url: `${baseUrl}/hunt/api/cand/user`,
    method: 'post',
    data: params
  });
}

export function save_user_info(params) {
  return http({
    url: `${baseUrl}/hunt/api/cand/user/add`,
    method: 'post',
    data: params
  });
}

export function record_log(params) {
  return http({
    url: `${baseUrl}/hunt/api/cand/user/log`,
    method: 'post',
    data: params
  });
}

export function save_resume(params) {
  return http({
    url: `${baseUrl}/hunt/api/cand/user/resume`,
    method: 'post',
    data: params
  });
}

